package com.foreknow.demo9Exercise2;

public class ClassB implements A {
    @Override
    public int method(int n) {
        int jieceng = 1;
        for (int i = 1;i<=n;i++) {
            jieceng *= i;
        }
        return jieceng;
    }
}
